<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2017/5/29
 * Time: 11:19
 */

namespace Home\Component;


use Common\Common\Component;
use Home\Model\User\UserModel;

class UserComponent extends Component
{
    private $model;

    public function __construct()
    {
        $this->model = new UserModel();
    }

    public function saveTime($time, $user_id)
    {
        $this->model->saveTime($time, $user_id);
    }

    public function incDayNum($user_id)
    {
        $this->model->incDayNum($user_id);
    }

    public function findDayNum($user_id)
    {
        return $this->model->findDayNum($user_id);
    }

    public function resetDayNum($user_id)
    {
        return $this->model->resetDayNum($user_id);
    }
}